<!-- 底部变压器 -->

<template>
  <EasyCard title="变压器" class="ElecOverview-BottomTransformator" noScroll sixth5>
    <template #title>
      <ParamRadio :param="infoParam" bind="menu" :dict="DICT.MENU" isBtn />
    </template>

    <div v-if="infoParam.menu === 2" class="flex flexWrap">
      <div v-for="item in info.dataList" :key="item.index" class="flex flexCol">
        <ItemTitle :obj="item" class="flex1" />
        <ItemPanel :obj="item" class="flex2" />
      </div>

      <el-empty v-if="readyInfo && !info.dataList.length" description="暂无数据" />
    </div>

    <LowVoltage v-else-if="infoParam.menu === 3" />

    <MyModal />
  </EasyCard>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'
import store from './store'
import props from '../props'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'BottomTransformator',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [CORE.mixStore(store), CORE.mixLoop()],

  /**
   * 组件导入 (Abc.vue + Abc/index.vue)
   */
  ...CORE.components(require.context('./', true, /vue$/)),

  /**
   * 属性注册 (抽取以便查阅)
   */
  props,
}
</script>

<style lang="scss">
@import './index.scss';
</style>
